<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of subtaskLabor
 *
 * @author nstevens
 */
class subtaskLabor {
    public $personID, $name, $phone, $email, $address, $company, $role, $hours, $rate, $subtaskLaborId;
    
    public function __construct($row) {
        $this->personID = $row['personID'];
        $this->address = getFieldGivenAnID("person", "personID", $this->personID, "address");
        $this->company = getFieldGivenAnID("person", "personID", $this->personID, "company");
        $this->email = getFieldGivenAnID("person", "personID", $this->personID, "email");
        $this->name = getFieldGivenAnID("person", "personID", $this->personID, "name");
        $this->phone = getFieldGivenAnID("person", "personID", $this->personID, "phone");
        $this->role = $row['role'];
        $this->rate = $row['rate'];
        $this->hours = $row['hours'];
        $this->subtaskLaborId = $row['subtaskLaborId'];
    }
}

?>
